/**
 * 
 */
package systole.persistence.brokersInterface;

import java.util.List;

import systole.domain.clinicalInformation.Medicine;
import systole.exceptions.ExceptionDAO;

/**
 * @author jmj
 *
 */
public interface MedicineBroker {

    /**
     * @param medicine
     * @throws ExceptionDAO
     */
    public void insert(Medicine medicine) throws ExceptionDAO;

    /**
     * @param medicine
     * @throws ExceptionDAO
     */
    public void update(Medicine medicine) throws ExceptionDAO;

    /**
     * @return all medicines
     * @throws ExceptionDAO
     */
    public List<Medicine> getAllMedicines() throws ExceptionDAO;

    /**
     *
     * @param name
     * @param id
     * @return if medicine exist
     * @throws ExceptionDAO
     */
    public boolean existMedicine(String name, Integer id) throws ExceptionDAO;

    /**
     * 
     * @param name
     * @return
     * @throws ExceptionDAO
     */
    public Medicine getMedicineByName(String name)throws ExceptionDAO;

  
}
